//
//  UIManage.h
//  expend
//
//  Created by ZAK on 14-3-27.
//  Copyright (c) 2014年 JKZL. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface UIManage : NSObject
/**
 *  创建一个UIButton
 *
 *  @param image
 *  @param lightImage
 *  @param target
 *  @param action
 *  @param title
 *  @param font
 *
 *  @return
 */
+(UIButton *)createButtonFrame:(CGRect)rect withBackColor:(UIColor *)bgColor BackgroundImage:(UIImage *)image lightImageView:(UIImage *)lightImage withTarget:(id)target withAction:(SEL)action withTitle:(NSString *)title withtextfont:(UIFont *)font withTextColor:(UIColor *)color;
+(UIButton *)createButtonFrame:(CGRect)rect withBackColor:(UIColor *)bgColor BackgroundImage:(UIImage *)image lightImageView:(UIImage *)lightImage withTarget:(id)target withAction:(SEL)action withAttributedTitle:(NSMutableAttributedString *)title withtextfont:(UIFont *)font withTextColor:(UIColor *)color;
/**
 *  创建UILabel
 *
 *  @param rect
 *  @param bgColor
 *  @param textColor
 *  @param font
 *  @param alignment
 *  @param content
 *
 *  @return 
 */
+(UILabel *)createUILabelFrame:(CGRect)rect
                 withBackColor:(UIColor *)bgColor
                 withTextColor:(UIColor *)textColor
                  withTextFont:(UIFont *)font
             withTextAlignment:(NSTextAlignment)alignment
               withTextContent:(NSString *)content;

/**
 *  创建UItextField
 *
 *  @param rect
 *  @param target
 *  @param content
 *  @param placeholderText
 *  @param style
 *  @param keyTyle
 *  @param keyBoard
 *  @param font
 *  @param color
 *  @param alignment
 *  @param cleanMode
 *
 *  @return
 */
+(UITextField *)createUITextFieldFrame:(CGRect)rect
                              delegate:(id)target
                                  text:(NSString *)content
                           placeholder:(NSString *)placeholder
                          withborStyle:(UITextBorderStyle)style
                             returnKey:(UIReturnKeyType)keyTyle
                              keyBoard:(UIKeyboardType)keyBoard
                              textFont:(UIFont *)font
                             textColor:(UIColor *)color
                         textAlignment:(NSTextAlignment)alignment
                      cleanButtonModel:(UITextFieldViewMode)cleanMode;


/**
 *  创建一个UITableView
 *
 *  @param rect
 *  @param target
 *  @param style
 *  @param isAllow
 *  @param separatorStyle
 *  @param color
 *  @param backgroundColor
 *  @param backgroundView
 *
 *  @return
 */
+(UITableView *)createUITableViewFrame:(CGRect)rect TableViewdeletedelete:(id)target type:(UITableViewStyle)style allowsSelection:(BOOL)isAllow separatorStyle:(UITableViewCellSeparatorStyle) separatorStyle separatorColor:(UIColor *)color backgroundColor:(UIColor *)backgroundColor backgroundView:(UIView *)backgroundView;

@end
